testsuite: Set GDK_DEBUG unconditionally
authorMatthias Clasen <mclasen@redhat.com>
Thu, 4 Nov 2021 00:39:33 +0000 (20:39 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 4 Nov 2021 00:39:33 +0000 (20:39 -0400)
The default-settings key works in non-debug builds
too, nowadays.

testsuite/meson.build

index 10fa16dfbc4c2f27317f0758992da8a85e73c7f5..97344f3062e026e583ff1f31756287d7d7b26c96 100644 (file)
@@ -8,12 +8,9 @@ common_env = [
   'GTK_CSD=1',
   'G_ENABLE_DIAGNOSTIC=0',
   'GSETTINGS_SCHEMA_DIR=@0@'.format(gtk_schema_build_dir),
+  'GDK_DEBUG=default-settings',
 ]
 
-if get_option('debug')
-  common_env += [ 'GDK_DEBUG=default-settings' ]
-endif
-
 if x11_enabled
   add_test_setup ('x11',
                   env: common_env + [
@@ -30,16 +27,11 @@ if wayland_enabled
                         'TEST_OUTPUT_SUBDIR=wayland',
                         ])
 
-  if get_option('debug')
-    gdk_debug = 'GDK_DEBUG=gl-gles,default-settings'
-  else
-    gdk_debug = 'GDK_DEBUG=gl-gles'
-  endif
   add_test_setup ('waylandgles',
                   env: common_env + [
                         'GDK_BACKEND=wayland',
                         'TEST_OUTPUT_SUBDIR=waylandgles',
-                        gdk_debug,
+                        'GDK_DEBUG=gl-gles,default-settings',
                         ])
 
 endif